package de.uni.bremen.estudent.lbs.models;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * Class represents the food element of the food supplier.
 * @author bahlfeld
 *
 */
@XStreamAlias("food")
public final class Meal {

	/**
	 * Represents the price for non studentens.
	 */
	@XStreamAlias("staff")
	private String staffprice;

	/**
	 * The price for students.
	 */
	@XStreamAlias("student")
	private String studentprice;

	/**
	 * Name of the meal.
	 */
	@XStreamAlias("name")
	private String name;

	/**
	 * Description of the meal.
	 */
	@XStreamAlias("desc")
	private String desc;

	/**
	 * Type of meal.
	 */
	@XStreamAlias("type")
	private byte type;

	/**
	 * Extras of the meal.
	 */
	@XStreamAlias("extra")
	private byte extra;



	public String getStaffprice() {
		return staffprice;
	}

	public void setStaffprice(String staffprice) {
		this.staffprice = staffprice;
	}

	public String getStudentprice() {
		return studentprice;
	}

	public void setStudentprice(String studentprice) {
		this.studentprice = studentprice;
	}

	public static final byte VEGETARIAN = 86;   // Dez.ASCII-CODE of V for Vegetarisch = 86
    public static final byte GAME = 87;         // Dez.ASCII-CODE of W for Wild = 87
    public static final byte PORK = 83;         // Dez.ASCII-CODE of S for Schwein = 83
    public static final byte FISH = 70;         // Dez.ASCII-CODE of F for Fisch = 70
    public static final byte BEEF = 82;         // Dez.ASCII-CODE of R for Rind = 82
    public static final byte POULTRY = 71;      // Dez.ASCII-CODE of G for Geflügel = 71
    public static final byte LAMB = 76;         // Dez.ASCII-CODE of L for Lamm = 76
    public static final byte DESSERT = 44;      // Dez.ASCII-CODE of D for Dessert = 44
    public static final byte SOUP = 84;         // Dez.ASCII-CODE of T for Tagessuppe = 84
    public static final byte VEGAN = 80;        // Dez.ASCII-CODE of P for Pflanze = 80
    public static final byte NO_EXTRA = 78;     // Dez.ASCII-CODE of N for No_Extra = 78
    public static final byte NO_TYPE = 79;      // Dez.ASCII-CODE of O for No_Type = 79


    /**
     * Returns the name of the meal.
     * @return String name of the meal.
     */
	public String getName() {
		return name;
	}

	/**
	 * Setter for the name of the name.
	 * @param name String name of the meal.
	 */
	public void setName(final String name) {
		this.name = name;
	}

	/**
	 * Getter for the description.
	 * @return Description
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * Setts the description of the meal.
	 * @param desc Description
	 */
	public void setDesc(final String desc) {
		this.desc = desc;
	}

	/**
	 * Getter for the type.
	 * @return the type.
	 */
	public byte getType() {
		return type;
	}

	/**
	 * Setter for the type of meal.
	 * @param type
	 */
	public void setType(final byte type) {
		this.type = type;
	}

	/**
	 * Getter for the extra field.
	 * @return Extra field
	 */
	public byte getExtra() {
		return extra;
	}

	/**
	 * Setter for the extra field.
	 * @param extra
	 */
	public void setExtra(final byte extra) {
		this.extra = extra;
	}
}
